package com.jt.flight.model.afare.request;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 *
 * {
     "cid": "test",
     "tripTpye":1,
     "fromCity": "BJS",
     "toCity": "HKG",
     "fromDate": "20130729",
     "retDate": ""
   }
 * since 2015/11/26.
 */
public class SearchReq {

    //用户id
    private String cid;
    //1单程,2往返
    private int tripType;
    private String fromCity;
    private String toCity;
    @DateTimeFormat(pattern = "yyyyMMdd")
    private Date fromDate;
    //留空表示单程
    @DateTimeFormat(pattern = "yyyyMMdd")
    private Date retDate;

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public int getTripType() {
        return tripType;
    }

    public void setTripType(int tripType) {
        this.tripType = tripType;
    }

    public String getFromCity() {
        return fromCity;
    }

    public void setFromCity(String fromCity) {
        this.fromCity = fromCity;
    }

    public String getToCity() {
        return toCity;
    }

    public void setToCity(String toCity) {
        this.toCity = toCity;
    }

    public Date getFromDate() {
        return fromDate;
    }

    public void setFromDate(Date fromDate) {
        this.fromDate = fromDate;
    }

    public Date getRetDate() {
        return retDate;
    }

    public void setRetDate(Date retDate) {
        this.retDate = retDate;
    }
}
